package com.yudean.esb.mapper.erp;

import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface ErpAccountMapper {

    List selectByCcid(Long ccid);

    List findAccountCombinationsByCompCode(String compCode);

    List findAllAccountCombinations(int pageNoInt, int pageSizeInt);

    Long getAccountCombinationCount();

    List getAccountCombinationsByCompCodeandAcctCode(String compCode, String acctCode);

    List getAllAccount();

    List getAllFatherAccount();

    List getSubAccountByFatherCode(String fatherCode);

    List getAccountSubByCompCode(String compCode);

    Long getSubAccountCount();

    List getAllSubAccount(int pageNoInt, int pageSizeInt);

    List getAccountSubByAcctCodeSub(String acctCodeSub);

    List getBalanceByPeriodName(String periodName, String segment1);

    long getBalanceCount(String periodName);

    List getAllBalanceByPeriodName(String periodName, int pageNoInt,int pageSizeInt);

    List getBalanceByCombination(Long codeCombinationId, String segment1);

    List<?> getJournalByDate(String compCode, String beginDate, String endDate);

    List<?> getAllJournalByDate(String beginDate, String endDate, String pageNo, String pageSize);

    long getJournaltCount(String beginDate, String endDate);

    List<?> getJournalByPeriodName(String periodName, String pageNo, String pageSize);

    long getJournaltCountByPeriodName(String periodName);

    List<?> getBalanceByCombinationandperiodName(Long codeCombinationId, String segment1, String periodName);

    List<?> getJournalByPeriodNameAndJeSourceAndCompCode(String periodName, String jeSource, String compCode, int pageNoInt, int pageSizeInt);

    List getAccountByAcctCode(String acctCode);
}
